
import pytest
from loguru import logger
from tools.handle_path import log_path

#日志写入到文件：--优先写。
logger.add(sink=log_path/"lemonapi.log",
           encoding="UTF8",
           level="INFO",
           rotation="10MB",
           retention=20)

# 运行allure报告
pytest.main(["-v","-s","--alluredir=outputs/allure_report","--clean-alluredir","--env=dev"])
